package com.demo.studentmanager.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo.studentmanager.dao.ScoreMapper;
import com.demo.studentmanager.dto.ScoreListDto;
import com.demo.studentmanager.entity.Score;
import com.demo.studentmanager.service.IScoreService;
import com.demo.studentmanager.vo.ScoreVO;
import org.springframework.stereotype.Service;

/**
 * @author LinQiSen
 */
@Service
public class ScoreServiceImpl extends ServiceImpl<ScoreMapper, Score> implements IScoreService {

    @Override
    public IPage<ScoreVO> getScorelist(ScoreListDto scoreListDto) {
        IPage<ScoreVO> page = new Page<>(scoreListDto.getCurrent(), scoreListDto.getSize());
        return baseMapper.getScoreList(page, scoreListDto);
    }


}
